<?php

use Illuminate\Database\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint;
use Illuminate\Support\Facades\Schema;

class CreateLeaseChangeLogsTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('lease_change_logs', function (Blueprint $table) {
            $table->id();
            $table->tinyInteger('department')->default(2)->comment('分配店铺id');
            $table->string('order_sn')->default('')->comment('订单id');
            $table->timestamps();
        });
        \DB::statement("ALTER TABLE `lease_change_logs` comment '总部分配订单记录'");
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::dropIfExists('lease_change_logs');
    }
}
